﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TheStar.Lib
{
    public class Transition
    {
        private double cost;
        private object child;

        public Transition(object child, double cost)
        {
            if (child == null)
            {
                throw new ArgumentNullException("child");
            }
            if (cost <= 0)
            {
                throw new ArgumentOutOfRangeException("cost");
            }
            this.child = child;
            this.cost = cost;
        }

        public object Child
        {
            get { return child; }
        }
        public double Cost
        {
            get { return cost; }
        }
    }
}
